package com.yunfei.yunhetong.magerIndeInfo.bo;
import com.yunfei.yunhetong.magerIndeInfo.entity.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename MAGER_INDC_INFO
*@author zhengyunfei
*@createDate Thu Jul 25 10:52:57 CST 2019
*/ 
public class MagerIndcInfoBo implements java.io.Serializable{
	private String CustNm;
	private String CertTyp;
	private String CertNo;
	private String MobileNo;
	private String IdenCardTyp;
	private String CrmMagerId;
	private String CaCustId;
	private String IdenDate;
	private String IdenUser;
	private String ModiDate;
	private String ModiUser;
	private String ContractNm;
	private String ContractAdd;
	private String ContractId;
	private String MagerNm;
	private String MagerAdd;
	private String MagerId;
	private String AgentNm;
	private String AgentAdd;
	private String AgentId;
	private String agentUserId;
	private String CancelContractNm;
	private String CancelContractAdd;
	private String CancelContractId;
	private String field;
	private String order;
	private String agentUserNm;
	private String confFlg;//判断合同模板管理是添加还是增加

	public String getConfFlg() {
		return confFlg;
	}

	public void setConfFlg(String confFlg) {
		this.confFlg = confFlg;
	}
	public String getAgentUserNm() {
		return agentUserNm;
	}

	public void setAgentUserNm(String agentUserNm) {
		this.agentUserNm = agentUserNm;
	}

	public String getAgentUserId() {
		return agentUserId;
	}

	public void setAgentUserId(String agentUserId) {
		this.agentUserId = agentUserId;
	}

	/**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		return curNo;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setCustNm(String CustNm){
		this.CustNm=CustNm;
	}
	public String getCustNm(){
		return CustNm;
	}
	public void setCertTyp(String CertTyp){
		this.CertTyp=CertTyp;
	}
	public String getCertTyp(){
		return CertTyp;
	}
	public void setCertNo(String CertNo){
		this.CertNo=CertNo;
	}
	public String getCertNo(){
		return CertNo;
	}
	public void setMobileNo(String MobileNo){
		this.MobileNo=MobileNo;
	}
	public String getMobileNo(){
		return MobileNo;
	}
	public void setIdenCardTyp(String IdenCardTyp){
		this.IdenCardTyp=IdenCardTyp;
	}
	public String getIdenCardTyp(){
		return IdenCardTyp;
	}
	public void setCrmMagerId(String CrmMagerId){
		this.CrmMagerId=CrmMagerId;
	}
	public String getCrmMagerId(){
		return CrmMagerId;
	}
	public void setCaCustId(String CaCustId){
		this.CaCustId=CaCustId;
	}
	public String getCaCustId(){
		return CaCustId;
	}
	public void setIdenDate(String IdenDate){
		this.IdenDate=IdenDate;
	}
	public String getIdenDate(){
		return IdenDate;
	}
	public void setIdenUser(String IdenUser){
		this.IdenUser=IdenUser;
	}
	public String getIdenUser(){
		return IdenUser;
	}
	public void setModiDate(String ModiDate){
		this.ModiDate=ModiDate;
	}
	public String getModiDate(){
		return ModiDate;
	}
	public void setModiUser(String ModiUser){
		this.ModiUser=ModiUser;
	}
	public String getModiUser(){
		return ModiUser;
	}
	public void setContractNm(String ContractNm){
		this.ContractNm=ContractNm;
	}
	public String getContractNm(){
		return ContractNm;
	}
	public void setContractAdd(String ContractAdd){
		this.ContractAdd=ContractAdd;
	}
	public String getContractAdd(){
		return ContractAdd;
	}
	public void setContractId(String ContractId){
		this.ContractId=ContractId;
	}
	public String getContractId(){
		return ContractId;
	}
	public void setMagerNm(String MagerNm){
		this.MagerNm=MagerNm;
	}
	public String getMagerNm(){
		return MagerNm;
	}
	public void setMagerAdd(String MagerAdd){
		this.MagerAdd=MagerAdd;
	}
	public String getMagerAdd(){
		return MagerAdd;
	}
	public void setMagerId(String MagerId){
		this.MagerId=MagerId;
	}
	public String getMagerId(){
		return MagerId;
	}
	public void setAgentNm(String AgentNm){
		this.AgentNm=AgentNm;
	}
	public String getAgentNm(){
		return AgentNm;
	}
	public void setAgentAdd(String AgentAdd){
		this.AgentAdd=AgentAdd;
	}
	public String getAgentAdd(){
		return AgentAdd;
	}
	public void setAgentId(String AgentId){
		this.AgentId=AgentId;
	}
	public String getAgentId(){
		return AgentId;
	}
	public void setCancelContractNm(String CancelContractNm){
		this.CancelContractNm=CancelContractNm;
	}
	public String getCancelContractNm(){
		return CancelContractNm;
	}
	public void setCancelContractAdd(String CancelContractAdd){
		this.CancelContractAdd=CancelContractAdd;
	}
	public String getCancelContractAdd(){
		return CancelContractAdd;
	}
	public void setCancelContractId(String CancelContractId){
		this.CancelContractId=CancelContractId;
	}
	public String getCancelContractId(){
		return CancelContractId;
	}
	public static MagerIndcInfoEntity boToEntity(MagerIndcInfoBo bo){
		MagerIndcInfoEntity entity=new MagerIndcInfoEntity();
		entity.setCustNm(bo.getCustNm());
		entity.setCertTyp(bo.getCertTyp());
		entity.setCertNo(bo.getCertNo());
		entity.setMobileNo(bo.getMobileNo());
		entity.setIdenCardTyp(bo.getIdenCardTyp());
		entity.setCrmMagerId(bo.getCrmMagerId());
		entity.setCaCustId(bo.getCaCustId());
		entity.setIdenDate(bo.getIdenDate());
		entity.setIdenUser(bo.getIdenUser());
		entity.setModiDate(bo.getModiDate());
		entity.setModiUser(bo.getModiUser());
		entity.setContractNm(bo.getContractNm());
		entity.setContractAdd(bo.getContractAdd());
		entity.setContractId(bo.getContractId());
		entity.setMagerNm(bo.getMagerNm());
		entity.setMagerAdd(bo.getMagerAdd());
		entity.setMagerId(bo.getMagerId());
		entity.setAgentNm(bo.getAgentNm());
		entity.setAgentAdd(bo.getAgentAdd());
		entity.setAgentId(bo.getAgentId());
		entity.setAgentUserId(bo.getAgentUserId());
		entity.setCancelContractNm(bo.getCancelContractNm());
		entity.setCancelContractAdd(bo.getCancelContractAdd());
		entity.setCancelContractId(bo.getCancelContractId());
		entity.setAgentUserNm(bo.getAgentUserNm());
		entity.setConfFlg(bo.getConfFlg());
		return entity;
	}
	public static MagerIndcInfoBo entityToBo(MagerIndcInfoEntity bo){
		MagerIndcInfoBo entity=new MagerIndcInfoBo();
		entity.setCustNm(bo.getCustNm());
		entity.setCertTyp(bo.getCertTyp());
		entity.setCertNo(bo.getCertNo());
		entity.setMobileNo(bo.getMobileNo());
		entity.setIdenCardTyp(bo.getIdenCardTyp());
		entity.setCrmMagerId(bo.getCrmMagerId());
		entity.setCaCustId(bo.getCaCustId());
		entity.setIdenDate(bo.getIdenDate());
		entity.setIdenUser(bo.getIdenUser());
		entity.setModiDate(bo.getModiDate());
		entity.setModiUser(bo.getModiUser());
		entity.setContractNm(bo.getContractNm());
		entity.setContractAdd(bo.getContractAdd());
		entity.setContractId(bo.getContractId());
		entity.setMagerNm(bo.getMagerNm());
		entity.setMagerAdd(bo.getMagerAdd());
		entity.setMagerId(bo.getMagerId());
		entity.setAgentNm(bo.getAgentNm());
		entity.setAgentAdd(bo.getAgentAdd());
		entity.setAgentId(bo.getAgentId());
		entity.setAgentUserId(bo.getAgentUserId());
		entity.setCancelContractNm(bo.getCancelContractNm());
		entity.setCancelContractAdd(bo.getCancelContractAdd());
		entity.setCancelContractId(bo.getCancelContractId());
		entity.setAgentUserNm(bo.getAgentUserNm());
		entity.setConfFlg(bo.getConfFlg());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("custNm")){
					result="CUST_NM";
				}
				if(field.equals("certTyp")){
					result="CERT_TYP";
				}
				if(field.equals("certNo")){
					result="CERT_NO";
				}
				if(field.equals("mobileNo")){
					result="MOBILE_NO";
				}
				if(field.equals("idenCardTyp")){
					result="IDEN_CARD_TYP";
				}
				if(field.equals("crmMagerId")){
					result="CRM_MAGER_ID";
				}
				if(field.equals("caCustId")){
					result="CA_CUST_ID";
				}
				if(field.equals("idenDate")){
					result="IDEN_DATE";
				}
				if(field.equals("idenUser")){
					result="IDEN_USER";
				}
				if(field.equals("modiDate")){
					result="MODI_DATE";
				}
				if(field.equals("modiUser")){
					result="MODI_USER";
				}
				if(field.equals("contractNm")){
					result="CONTRACT_NM";
				}
				if(field.equals("contractAdd")){
					result="CONTRACT_ADD";
				}
				if(field.equals("contractId")){
					result="CONTRACT_ID";
				}
				if(field.equals("magerNm")){
					result="MAGER_NM";
				}
				if(field.equals("magerAdd")){
					result="MAGER_ADD";
				}
				if(field.equals("magerId")){
					result="MAGER_ID";
				}
				if(field.equals("agentNm")){
					result="AGENT_NM";
				}
				if(field.equals("agentAdd")){
					result="AGENT_ADD";
				}
				if(field.equals("agentId")){
					result="AGENT_ID";
				}
				if(field.equals("cancelContractNm")){
					result="CANCEL_CONTRACT_NM";
				}
				if(field.equals("cancelContractAdd")){
					result="CANCEL_CONTRACT_ADD";
				}
				if(field.equals("cancelContractId")){
					result="CANCEL_CONTRACT_ID";
				}
		}
		return result;
	}
}

